package efrei.ngo.entity;

import java.util.GregorianCalendar;

public class ItemSimple {
	private String postID;
    private String titleName;
    private String description;
    private GregorianCalendar postDate;
    private User owner;
    
    
	public ItemSimple(String postID, String titleName, String description,
			GregorianCalendar postDate, User owner) {
		super();
		this.postID = postID;
		this.titleName = titleName;
		this.description = description;
		this.postDate = postDate;
		this.owner = owner;
	}
	
	public ItemSimple(String postID, String titleName, String description,
			GregorianCalendar postDate, String owner) {
		super();
		this.postID = postID;
		this.titleName = titleName;
		this.description = description;
		this.postDate = postDate;
		this.owner = new User(owner);
	}
	
	public ItemSimple(String postID){
		this.postID=postID;
	}
	
	public String getPostID() {
		return postID;
	}
	
	public void setPostID(String postID) {
		this.postID = postID;
	}
	
	public String getTitleName() {
		return titleName;
	}
	
	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}
	
	public String getDescription() {
		return description;
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
	
	public GregorianCalendar getPostDate() {
		return postDate;
	}
	
	public void setPostDate(GregorianCalendar postDate) {
		this.postDate = postDate;
	}
	
	public User getOwner() {
		return owner;
	}    
}
